#include<iostream>
using namespace std;
int main()
{
    int a,b,n;
    cin>>n;
    while(n!=0)
    {
        cin>>a>>b;
        int c;
        c=a+b;
        cout<<c<<endl;
        n--;
    }
    return 0;
}